package com.gla.market.entity;

import java.io.Serializable;

public class ShopCart implements Serializable {
    private Integer id;
    private Integer number;
    private Commodity commodity;
    private Integer user_id;
    private Boolean choosed;

    public ShopCart() {
        this.choosed = false;
    }

    public ShopCart(Integer id, Integer number, Commodity commodity, Integer user_id, Integer shop_id) {
        this.id = id;
        this.number = number;
        this.commodity = commodity;
        this.user_id = user_id;
        this.choosed = false;
    }
    public Boolean getChoosed() {
        return choosed;
    }

    public void setChoosed(Boolean choosed) {
        this.choosed = choosed;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }


    @Override
    public String toString() {
        return "ShopCart{" +
                "id=" + id +
                ", number=" + number +
                ", commodity=" + commodity +
                ", user_id=" + user_id +
                ", choosed=" + choosed +
                '}';
    }
}
